<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">

    <title>${userType}注册</title>

    <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/bootstrap/css/font-awesome.min.css">


</head>
<body>
<div class="container">
    <div class="row mainForm">
        <div class="col-md-2"></div>
        <div class="col-md-6">
            <form id="userForm" class="form-horizontal col-md-offset-3" action="/handleRegister" method="post" role="form">
                <div id="legend" class="form-group text-center title ">
                    <legend class="title">
                        ${userType}注册
                    </legend>
                </div>

                <div class="form-group">
                    <label for="user_name" class="control-label">${userType}名</label>
                    <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-user fa-fw"></i></span>
                        <input name="username" class="form-control" type="text" placeholder="请输入名称">
                    </div>
                </div>


                <div class="form-group">
                    <!-- Text input-->
                    <label for="user_pw_" class="control-label">密码</label>
                    <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-key fa-fw"></i></span>
                        <input name="pw" class="form-control" type="password" placeholder="请输入密码">
                    </div>
                </div>

                <div class="space-1"></div>

                <#if userType??>
                    <#if userType =="学生">
                        <input class="form-control"  name="type" type="hidden" value="student"/>
                    </#if>
                    <#if userType =="教师">
                        <input class="form-control"  name="type" type="hidden" value="teacher"/>
                    </#if>
                </#if>

                <div class="form-group text-center">
                    <label class="control-label"></label>
                    <button type="submit" class="btn btn-default btn-block btn-success" >Submit</button>
                </div>

            </form>
        </div>
        <div class="col-md-4"></div>
    </div>
</div>
</body>

<script src="/jquery-3.3.1/jquery-3.3.1.min.js"></script>
<script src="/bootstrap/js/bootstrap.min.js"></script>

</html>